<?php
class Admin_Models_PermissionManagerModel extends Zend_Db_Table_Abstract{
	protected $_name="permission_manager";
	protected $_primary="id";
	
	public function getPermissionManagerList(){
		$db = Zend_Registry::get('connectDB');
		$mySql = $db->select()
					->from(array('pm' => 'permission_manager'))
					->join(array('u' => 'user_admin'),'pm.user_id = u.id',array('username','id' => 'u.id'));
		$result = $db->fetchAll($mySql);
		return $result;
	}
}